<template>
    <div>
       <button @click="openModal">打开弹窗</button>
    </div>
</template>


<script setup>
import ConfirmModal from '../../common/confirmModal/ConfirmModal.vue';
//测试打开弹窗
const openModal = () => {
    console.log(window.$modal.open)
    window.$modal.open(ConfirmModal, {
            title: '弹窗标题123213',
            content: '弹窗内容333',
    }).then(() => {
        console.log('成功，弹窗关闭')
    }).catch(() => {
        console.log('失败，弹窗关闭')
    })
    window.$modal.open(ConfirmModal, {
            title: '弹窗标题123213',
            content: '弹窗内容333',
    }).then(() => {
        console.log('成功，弹窗关闭')
    }).catch(() => {
        console.log('失败，弹窗关闭')
    })

    console.log('打开弹窗2')
}
</script>
<style lang="scss" scoped>
</style>